$selectedColor: #e6f2ff;
$lighterBlue: #409EFF;
$borderColor:#409EFF;
$defaultColor:#E0E0E0;

::-webkit-scrollbar {
  width:8px;
  height:8px;
}
/* 滚动槽 */
::-webkit-scrollbar-track {
  box-shadow:inset 0 0 1px rgba(231, 231, 231, 0.5);
  //border-radius:2px;
}
/* 滚动条滑块 */
::-webkit-scrollbar-thumb {
  border-radius:4px;
  background:rgb(218, 218, 218);
  box-shadow:inset 0 0 1px rgba(231, 231, 231, 0.5);
}
::-webkit-scrollbar-thumb:window-inactive {
  background:rgb(218, 218, 218);
}


.components-list{
  .components-item {
    display: inline-block;
    width: 48%;
    margin: 1%;
    transition: transform 0ms !important;
    color:#515a6e;
    .components-body{
      text-align: left;
      padding: 7px 6px 6px 2px;
      font-size: 14px;
      margin-left: 5px;
      cursor: move;
      width:100%;
      i{
        size:16px;
        margin-left:8px;
        margin-right: 8px;
        vertical-align: -5%;
      }
      span{
        text-align: rigth;
      }
      &:hover {
        border: 1px solid #FFF;
        background-color: #2d8cf0;
        color: #FFF;
      }
      &:hover span{
        color: #FFF!important;
      }
      &:hover svg{
        fill: #FFF!important;
      }
    }
  }
} 


.drawing-board {
  //height: 100%;
  position: relative;
  padding:5px 0px 5px 5px;
  height: calc(100vh - 62px);
  //border:1px dashed $defaultColor;
  .components-body {
    padding: 0;
    margin: 0;
    font-size: 0;
  }
  .sortable-ghost {
    position: relative;
    display: block;
    overflow: hidden;
    &::before {
      width: 100%;
      content: " ";
      position: absolute;
      left: 0;
      right: 0;
      top: 0;
      height: 3px;
      background: #409EFF;
      z-index: 2;
    }
  }
  .components-item.sortable-ghost {
    width: 100%;
    height: 5px;
    background-color: $selectedColor;
  }
  .drawing-item.sortable-ghost {
    width: 100%;
    height: 5px;
    background-color: $selectedColor;
  }
  .active-from-item {
    border:2px solid $borderColor;
    & > .el-form-item{
      border-radius:6px;
      margin-top:15px;
    }
    & > .dynamic-table{
      background: $selectedColor;
      border-radius:6px;
    }
    & > .drawing-item-copy, & > .drawing-item-delete{
      display: initial;
    }
    & > .component-name{
      color: $lighterBlue;
    }
  }
  .el-form-item{
    margin-bottom: 5px;
  }
}
.drawing-item{
  position: relative;
  //&.unfocus-bordered:not(.active-from-item) > div:first-child {
    //border: 1px dashed $defaultColor;
  //}
  .el-form-item{
    margin-top:15px;
  }
}
.drawing-item{
  position: relative;
  //border: 1px dashed $defaultColor;
  .dynamic-table{
    padding: 12px 5px;
  }
}
.drawing-row-item{
  position: relative;
  cursor: move;
  box-sizing: border-box;
  border: 1px dashed $defaultColor;
  border-radius: 3px;
  padding: 0 2px;
  margin-bottom: 15px;
  .el-col{
    margin-top: 15px;
  }
  .el-form-item{
    margin-bottom: 15px;
  }
  .drag-wrapper{
    min-height: 80px;
  }
  .drag-col-wrapper{
    height: auto;
    border: 1px dashed $defaultColor;
  }
  &.active-from-item{
    border: 2px solid $borderColor;
  }
  .component-name{
    position: absolute;
    top: 0;
    left: 0;
    font-size: 12px;
    color: #bbb;
    display: inline-block;
    padding: 0 6px;
  }
}

.drawing-dynamic-item, 
.drawing-row-item{
  &:hover {
    border:2px solid $borderColor;
    overflow: hidden;
/*     & > .el-form-item{
      background: #ebeef5;
    } */
    & > .drawing-item-copy, & > .drawing-item-delete{
      display: initial;
    }
  }
  & > .drawing-item-copy, & > .drawing-item-delete{
    display: none;
    position: absolute;
    top: -1px;
    width: 22px;
    height: 22px;
    line-height: 22px;
    text-align: center;
    //border-radius: 50%;
    font-size: 12px;
    border: 1px solid;
    cursor: pointer;
    z-index: 1;
  }
  & > .drawing-item-copy{
    right: 21px;
    border-color: $borderColor;
    color: #FFF;
    background: $borderColor;
    &:hover{
      background: #FFF;
      color: $borderColor;
    }
  }
  & > .drawing-item-delete{
    right: -1px;
    border-color: $borderColor;
    color: #FFF;
    background: $borderColor;
    &:hover{
      background: #FFF;
      color: $borderColor;
    }
  }
}
//.drawing-item, 
.drawing-form-item{
  border: 1px dashed $defaultColor;
  &:hover {
    border:2px solid $borderColor;
    overflow: hidden;
/*     & > .el-form-item{
      background: #ebeef5;
    } */
    & > .drawing-item-copy, & > .drawing-item-delete{
      display: initial;
    }
  }
  & > .drawing-item-copy, & > .drawing-item-delete{
    display: none;
    position: absolute;
    top: -1px;
    width: 22px;
    height: 22px;
    line-height: 22px;
    text-align: center;
    //border-radius: 50%;
    font-size: 12px;
    border: 1px solid;
    cursor: pointer;
    z-index: 1;
  }
  & > .drawing-item-copy{
    right: 21px;
    border-color: $borderColor;
    color: #FFF;
    background: $borderColor;
    &:hover{
      background: #FFF;
      color: $borderColor;
    }
  }
  & > .drawing-item-delete{
    right: -1px;
    border-color: $borderColor;
    color: #FFF;
    background: $borderColor;
    &:hover{
      background: #FFF;
      color: $borderColor;
    }
  }
}
.right-board {
  width: 350px;
  position: absolute;
  right: 0;
  top: 0;
  padding-top: 3px;
  .field-box {
    position: relative;
    height: calc(100vh - 42px);
    box-sizing: border-box;
    overflow: hidden;
  }
  .el-scrollbar {
    height: 100%;
  }
}
.select-item {
  display: flex;
  border: 1px dashed #fff;
  box-sizing: border-box;
  & .close-btn {
    cursor: pointer;
    color: #f56c6c;
  }
  & .el-input + .el-input {
    margin-left: 4px;
  }
}
.select-item + .select-item {
  margin-top: 4px;
}
.select-item.sortable-chosen {
  border: 1px dashed #409eff;
}
.select-line-icon {
  line-height: 32px;
  font-size: 22px;
  padding: 0 4px;
  color: #777;
}
.option-drag {
  cursor: move;
}
.time-range {
  .el-date-editor {
    width: 227px;
  }
  ::v-deep .el-icon-time {
    display: none;
  }
}
.document-link {
  position: absolute;
  display: block;
  width: 26px;
  height: 26px;
  top: 0;
  left: 0;
  cursor: pointer;
  background: #409eff;
  z-index: 1;
  border-radius: 0 0 6px 0;
  text-align: center;
  line-height: 26px;
  color: #fff;
  font-size: 18px;
}
.node-label{
  font-size: 14px;
}
.node-icon{
  color: #bebfc3;
}
.center-tabs{
  .el-tabs__header{
    margin-bottom: 0!important;
  }
  .el-tabs__item{
    width: 50%;
    text-align: center;
  }
  .el-tabs__nav{
    width: 100%;
  }
}
.right-scrollbar {
  .el-scrollbar__view {
    padding: 12px 18px 15px 15px;
  }
}
.drawing-row-item .el-col{
  margin-bottom:10px;
}
.components-item.dynamicGhost {
  width: 5px;
  height: 120px;
  background-color: #409EFF;
}
.dynamic-table_item.dynamicGhost {
  width: 5px;
  height: 120px;
  background-color: #409EFF;
}
